<h1 class="olheader">Listing Architectures</h1>

<table>
  <tr>
  <% for column in Architecture.content_columns %>
    <th class="ListTitle"><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% odd_or_even = 0
  	for architecture in @architectures
  	odd_or_even = 1- odd_or_even %>
  <tr valign="top" class="ListLine<%=odd_or_even%>">
  <% for column in Architecture.content_columns %>
    <td><%=h architecture.send(column.name) %></td>
  <% end %>
    <td class ="ListActions"><%= link_to 'Show', :action => 'show', :id => architecture %></td>
    <td class ="ListActions"><%= link_to 'Edit', :action => 'edit', :id => architecture %></td>
    <td class ="ListActions"><%= link_to 'Destroy', { :action => 'destroy', :id => architecture }, :confirm => 'Are you sure?', :method => :post %></td>
  </tr>
<% end %>
</table>

<%= link_to 'Previous page', { :page => @architecture_pages.current.previous } if @architecture_pages.current.previous %>
<%= link_to 'Next page', { :page => @architecture_pages.current.next } if @architecture_pages.current.next %> 

<br />

<%= link_to 'New architecture', :action => 'new' %>
